package com.yyds.mapper;

import com.yyds.pojo.NewsComments;
import com.yyds.vo.NewsCommentsVo;

import java.util.List;

public interface NewsCommentsMapper {
    List<NewsComments> findNewsComments(NewsComments newsComments);

    //多表联查,查询后展示评论者的 名字 和评论的新闻的标题
    List<NewsCommentsVo> selectCompleteNewsCommentsMapper(NewsCommentsVo newsCommentsVo);

    int deleteAllNewsCommentsMapper(int...comments_ids);

    int insertNewsCommentsMapper(NewsComments newsComments);

    NewsComments selectNewsCommentsMapper(Integer news_id);


    Integer deleteNewsCommentsMapper(Integer comments_id);

    int updateNewsCommentsMapper(NewsComments newsComments);
}
